package flaud

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type JudgmentParagraphRouter struct{}

// InitJudgmentParagraphRouter 初始化 裁决结果管理 路由信息
func (s *JudgmentParagraphRouter) InitJudgmentParagraphRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
	JPGRouter := Router.Group("JPG").Use(middleware.OperationRecord())
	JPGRouterWithoutRecord := Router.Group("JPG")
	JPGRouterWithoutAuth := PublicRouter.Group("JPG")
	{
		JPGRouter.POST("createJudgmentParagraph", JPGApi.CreateJudgmentParagraph)             // 新建裁决结果管理
		JPGRouter.DELETE("deleteJudgmentParagraph", JPGApi.DeleteJudgmentParagraph)           // 删除裁决结果管理
		JPGRouter.DELETE("deleteJudgmentParagraphByIds", JPGApi.DeleteJudgmentParagraphByIds) // 批量删除裁决结果管理
		JPGRouter.PUT("updateJudgmentParagraph", JPGApi.UpdateJudgmentParagraph)              // 更新裁决结果管理
	}
	{
		JPGRouterWithoutRecord.GET("findJudgmentParagraph", JPGApi.FindJudgmentParagraph)       // 根据ID获取裁决结果管理
		JPGRouterWithoutRecord.GET("getJudgmentParagraphList", JPGApi.GetJudgmentParagraphList) // 获取裁决结果管理列表
	}
	{
		JPGRouterWithoutAuth.GET("getJudgmentParagraphPublic", JPGApi.GetJudgmentParagraphPublic) // 裁决结果管理开放接口
	}
}
